<?php
require 'Student.php';
require 'Course.php';
require 'Teacher.php';

$c1 = new Course(1, '计算机科学导论', 20, '计算机科学');
$c2 = new Course(2, '高等数学', 20, '理工科');
$c3 = new Course(3, 'c++', 60, '计算机科学');
$c4 = new Course(4, '线性代数', 30, '理工科');

$t1 = new Teacher(1, '张老师', '计算机专业');
$t1->addCourse($c1);
$t1->addCourse($c3);

/* echo $t1;
$t1->introduce(); */
$courses = $c1->teacher->courses;
foreach ($courses as $c) {
	echo $c . '<br/>';
}

